home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Acorn User: China
/
Acorn User China CD-ROM (UK) (Disc B)
/
Acorn User China CD-ROM (UK) (Disc B).bin
/
STUTTGART
/
DOCS
/
GENCSRC
/
SIMPLEIO.C
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1987-11-21
|
472 b
|
17 lines
/* Chapter 9 - Program 1 */
#include "stdio.h" /* standard header for input/output */
main()
{
char c;
printf("Enter any characters, X = halt program.\n");
do {
c = getchar(); /* get a single character from the kb */
putchar(c); /* display the character on the monitor */
} while (c != 'X'); /* until an X is hit */
printf("\nEnd of program.\n");
}